<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="application/javascript" src="dist/js/jquery-3.2.1.min.js"></script>
    <script type="application/javascript" src="dist/layer/layer.js"></script>

</head>
<body>
<button id="test1">gggg</button>
</body>
<script>

       $('#test1').on('click', function(){
        layer.msg('Hello layer');
    });

</script>
</html>